package com.bw.mapper;

import com.bw.bean.Medicine;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Description:
 *
 * @Author: zhangsuqing
 * @Create: 2025/7/29 19:39
 * @Version: 1.0
 */
@Mapper
public interface MedicineMapper {
    @Select("select * from medicine m left join mtype mt on m.t_tid=mt.t_id")
    List<Medicine> getList();

    List<Medicine> getMed(String name, Integer tid);
}
